package de.koller.cell.client.input;

import de.koller.aframe.plain.InputPlain;
import de.koller.cell.CNode;
import java.awt.event.KeyEvent;

public class CInput extends CNode {
	private InputPlain input;

	@Override
	protected void init() {
		super.init();
		
		input = new InputPlain( croot.client.display );
		this.addChild( input );
	}

	@Override
	protected void update( int elapsedTime ) {
		super.update( elapsedTime );
		
		if( input.isKeyPressed( KeyEvent.VK_F12 ) )
			croot.stopRoot();
		
	}
}
